package cn.ubest.mvvmcore.interfaces

import cn.ubest.mvvmcore.utils.LogUtils
import java.lang.Exception

/**
 * Created by maoqi on 2020/12/18.
 */
interface RequestHandler1<T> {
    suspend fun request1(): T

    fun onSuccess(t: T)

    fun onError(isInit: Boolean, e: Exception) {
        LogUtils.d("RequestHandler", "OnError:" + e.javaClass.name + " " + e.message)
    }
}